org.eclipse.vtp.framework.webservices.configurations
Class WebServiceMappingConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.webservices.configurations.WebServiceMappingConfiguration
All Implemented Interfaces:
IConfiguration, WebServiceConstants

public class WebServiceMappingConfiguration
extends java.lang.Object
implements IConfiguration, WebServiceConstants

A configuration for a web service call result mapping.

Author:
Lonnie Pryor

Field Summary
static int TYPE_FIELD
          Use the value of a field in the result set.
static int TYPE_NONE
          No action is taken for this mapping.
static int TYPE_STATIC
          Use a static value.
 
Fields inherited from interface org.eclipse.vtp.framework.webservices.configurations.WebServiceConstants
NAME_ENDPOINT, NAME_INPUT, NAME_LOCATOR, NAME_MAPPING, NAME_NAME, NAME_OPERATION, NAME_PORT, NAME_RESULT_CARDINALITY, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TYPE, NAME_VALUE, NAME_WEB_SERVICE, NAMESPACE_URI
 
Constructor Summary
WebServiceMappingConfiguration()
          Creates a new WebServiceMappingConfiguration.
 
Method Summary
 java.lang.String getName()
          Returns the name of the field to map to.
 int getType()
          Returns the type of mapping to perform.
 java.lang.String getValue()
          Returns the value to use for the mapping.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setName(java.lang.String name)
          Sets the name of the field to map to.
 void setType(int type)
          Sets the type of mapping to perform.
 void setValue(java.lang.String value)
          Sets the value to use for the mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NONE

public static final int TYPE_NONE
No action is taken for this mapping.

See Also:
Constant Field Values

TYPE_FIELD

public static final int TYPE_FIELD
Use the value of a field in the result set.

See Also:
Constant Field Values

TYPE_STATIC

public static final int TYPE_STATIC
Use a static value.

See Also:
Constant Field Values
Constructor Detail

WebServiceMappingConfiguration

public WebServiceMappingConfiguration()
Creates a new WebServiceMappingConfiguration.

Method Detail

getName

public java.lang.String getName()
Returns the name of the field to map to.

Returns:
The name of the field to map to.

setName

public void setName(java.lang.String name)
Sets the name of the field to map to.

Parameters:
name - The name of the field to map to.

getType

public int getType()
Returns the type of mapping to perform.

Returns:
The type of mapping to perform.

setType

public void setType(int type)
Sets the type of mapping to perform.

Parameters:
type - The type of mapping to perform.

getValue

public java.lang.String getValue()
Returns the value to use for the mapping.

Returns:
The value to use for the mapping.

setValue

public void setValue(java.lang.String value)
Sets the value to use for the mapping.

Parameters:
value - The value to use for the mapping.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Parameters:
configurationElement - The element to save the configuration to.